#ifndef __PRIMITIVE_H__
#define __PRIMITIVE_H__

#include <d3d9.h>
#include <vector>
#include "Object3D.h"

struct LCVertexPosDiffuse;
struct LCVertexTexture;
class XDrawer;
class DX;

class Primitive : public Object3D
{
public:
											Primitive( );
											~Primitive( );
	
	void									setBuffer( std::vector< LCVertexPosDiffuse >& vertices );
	void									setBuffer( std::vector< LCVertexTexture >& vertices );

	IDirect3DVertexBuffer9*					buffer();
	size_t									sizeBuffer();
	void									setColor( D3DCOLOR color );

private:
	IDirect3DVertexBuffer9*					_vertexBuffer;
	size_t									_sizeBuffer;
	D3DCOLOR								_color;
};

#endif